<?php
/*
 *VIP签到
*/
require 'qq.inc.php';

$qq=isset($_POST['qq']) ? $_POST['qq'] : $_GET['qq'];
$sid=isset($_POST['sid']) ? $_POST['sid'] : $_GET['sid'];
$skey=isset($_POST['skey']) ? $_POST['skey'] : $_GET['skey'];
$method=isset($_POST['method']) ? $_POST['method'] : $_GET['method'];
if($qq && $sid){}else{echo"<font color='red'>输入不完整!<a href='javascript:history.back();'>返回重新填写</a></font>";exit;}

require_once 'qzone.class.php';
$qzone=new qzone($qq,$sid,$skey);
$qzone->vipqd();

//$fromapi=curl_get('http://api.linkr.net/qq?action=qiandao_web&uid='.$qq.'&token=&skey='.$sid.'&echo=json');
//$arr=json_decode($fromapi,true);
//$fromapi=curl_get('http://api.linkr.net/qq?action=qiandao_pc&uid='.$qq.'&token=&skey='.$sid.'&echo=json');
//$arr2=json_decode($fromapi,true);


//结果输出
foreach($qzone->msg as $result){
	echo $result.'<br/>';
}
//echo $arr['ret'].'<br/>';
//echo $arr2['ret'].'<br/>';

//SID失效通知
if($qzone->sidzt){
	sendsiderr($qq,$sid,'sid');
}elseif($qzone->skeyzt){
	sendsiderr($qq,$sid,'skey');
}
?>